package org.sport.dbInterface;

import org.sport.model.entityModel.ActivitytableEntity;
import org.sport.model.entityModel.ActlinuserEntity;
import org.sport.model.entityModel.UsertableEntity;

import java.util.List;

/**
 * Created by Allen on 2017/9/28.
 */
public interface ActLinkUserOperation {
    /**
     * 增加一个User进入Act
     * */
    boolean         addOneData(ActlinuserEntity alu);


    /**
     * 删除一个User从Act
     * */
    boolean         delOneLine(ActlinuserEntity alu);

    /**
     * 查找一个Act的所有User
     * */
    List<UsertableEntity> findOneGroupAllUsers(ActivitytableEntity act);

    /**
     * 查找一个User的所有Act
     * */
    List<ActivitytableEntity> findOneUserAllAct(UsertableEntity user);
}
